﻿/*
 * Created by SharpDevelop.
 * User: lebeda
 * Date: 18.2.2014
 * Time: 20:45
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;

namespace simpleExplorer
{
    
    /// <summary>
    /// Definition of target of item. 
    /// menu - create new sumbmenu,
    /// item - item for execute
    /// include - imediate execute and return menuItems for current menu
    /// </summary>    
    public enum ItemTarget {menu, item, include};
    
    /// <summary>
    /// Types of execute for items or MenuItemProviders for menu or include 
    /// </summary>
    public enum ItemType {filesystemMenuProvider, xmlMenuProvider, cmdMenuProvider, fsRecurciveMenuProvider, noteMenuProvider, // MenuItemProviders
        execItem, sendItem} // execute types
    
    /// <summary>
    /// Description of MenuItem.
    /// </summary>
    public class MenuItem
    {
        public string caption {get; set;}
        public ItemType itemType {get; set;}
        public ItemTarget itemTarget {get; set;}
        public string cmd {get; set;}
        public string param {get; set;}
        public string directory {get; set;}
        public MenuItem menuUp {get; set;}
        public int count {get; set;}
        
        public MenuItem(){
            
        }
        
        public MenuItem(string caption, ItemTarget itemTarget, ItemType itemType, 
                        string cmd, string param, string directory, MenuItem menuUp)
        {
            this.caption = caption;
            this.itemType = itemType;
            this.itemTarget = itemTarget;
            this.cmd = cmd;
            this.param = param;
            this.directory = directory;
            this.menuUp = menuUp;
        }
        
        
    }
}
